# -*- coding:utf-8 -*-

from __future__ import unicode_literals

from django.db import models

# Create your models here.

class UserInfo(models.Model):
    username =  models.CharField(max_length=32)
    age = models.IntegerField()
    user_type = models.ForeignKey('User_Type')

class User_Type(models.Model):
    caption = models.CharField(max_length=32)
    def __unicode__(self):
        return self.caption